package demo;

/**
 * 跳出多层循环
 *
 * @author dingwen
 * 2021.06.10 09:23
 */
public class LoopsBreakDemo {
    public static void main(String[] args) {
        end:
        for (int i = 0; i < 20; i++) {
            for (int j = 0; j < 300; j++) {
                if (i == 19 && j == 100) {
                    System.out.println("i = " + i);
                    System.out.println("j = " + j);
                    break end;
                }
            }
        }
    }
}
